import { buildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  getBaseInfo: {
    url: '/api/v1/project/component',
    method: 'get',
    type: 'restful'
  },
  //获取项目关联的公司
  getCompanyInfo: {
    url: '/api/v1/project/project_company',
    method: 'get',
    type: 'restful'
  },
  // 获取制作信息
  getMakeInfo: {
    url: '/admin/component/getMakeInfo',
    method: 'get'
  },
  // 获取运输信息
  getTransInfo: {
    url: '/admin/component/getTransInfo',
    method: 'get'
  },
  // 获取安装信息
  getInstallInfo: {
    url: '/admin/component/getInstallInfo',
    method: 'get'
  },
  // 获取设计信息
  getDesignInfo: {
    url: '/admin/component/getDesignInfo',
    method: 'get'
  },
  // 获取编辑信息
  getEditInfo: {
    url: '/admin/component/editInfo',
    method: 'get'
  },
  submitInfo: {
    url: '/api/v1/project/component',
    method: 'put',
    type: 'restful'
  },
  // 获取列表数据
  getReportInfo: {
    url: '/api/v1/project/component_report',
    method: 'get'
  },
  // 获取检查项数据
  getCheckItems: {
    url: '/admin/check/getcheckItems',
    method: 'get'
  }
}

export default buildService(settings)
